package com.t2b.thaicalendar.dao;

import java.util.Calendar;
import java.util.Locale;

/**
 * Created by OLEEB on 6/10/2014.
 */
public class T2BCalendar {
    public static final String[] DAYNAMESTH = {"อา","จ","อ","พ","พฤ","ศ","ส"};
    public static final String[] MONTHNAMETH = {"มกราคม","กุมพาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"};
    private static int sCurrentDay;
    private static int sCurrentYear;
    private static int sCurrentMonth;

    public T2BCalendar(){
        Calendar calendar = Calendar.getInstance(Locale.getDefault());
        this.sCurrentDay = calendar.get(Calendar.DAY_OF_YEAR);
        this.sCurrentYear = calendar.get(Calendar.YEAR);
        this.sCurrentMonth = calendar.get(Calendar.MONTH);
    }

    public static int getCurrentDay() {
        return T2BCalendar.sCurrentDay;
    }

    public static int getCurrentYear() {
        return T2BCalendar.sCurrentYear;
    }

    public static int getCurrentMonth() {
        return T2BCalendar.sCurrentMonth;
    }

    public static int getYearTh(int year){
        return 543+year;
    }

}
